var mongoose  = require('mongoose');
var BaseModel = require("./base_model");
var Schema    = mongoose.Schema;
//var _ = require('lodash');

var MemberSchema = new Schema({
    projectId:{type: Schema.Types.ObjectId, ref:'Project'},
    //projectTitle:{type: String},
    user:{type: String},
    role:{type: String},
    create_at: { type: Date, default: Date.now },
    update_at: { type: Date, default: Date.now }
});

MemberSchema.plugin(BaseModel);


module.exports = mongoose.model('Member', MemberSchema);
